package com.account.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 账户表
 * </p>
 *
 * @author yangjingjing
 * @since 2020-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Account implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * 账户ID
     */
    private String id;

    private String customerId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 账户号
     */
    private String accountCode;

    /**
     * 账户名称
     */
    private String accountType;

    /**
     * 账户余额
     */
    private String balance;

    /**
     * 账户状态
     */
    private String status;

    /**
     * 账户开户时间
     */
    private LocalDateTime created;


    public static final String ID = "id";

    public static final String CUSTOMER_ID = "customer_id";

    public static final String USER_ID = "user_id";

    public static final String ACCOUNT_CODE = "account_code";

    public static final String ACCOUNT_TYPE = "account_type";

    public static final String BALANCE = "balance";

    public static final String STATUS = "status";

    public static final String CREATED = "created";

}
